﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Dissemination.MVC.ViewModels.TargetAreaViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	<asp:Literal runat="server" Text="<%$ Resources:Literals, ApplicationTitle%>" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="BreadcrumbContent" runat="server">
	<%= Html.ActionLink(Model.TargetArea.Program.ProgramName, "Details", "Program", new { id = ViewContext.RouteData.Values["programid"] }, null)%> &gt; <%= Model.TargetArea.TargetAreaCenter%>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h1>Edit TA Details</h1>

    <% using (Html.BeginForm()) {%>
        <%= Html.ValidationSummary(true) %>
        
        <fieldset id="ta_create">
            <div class="marg_der_230 flota">
                <%= Html.EditorFor(model => model.TargetArea, new { Countries = Model.Countries }) %>
            </div>
            <div class="limpia"></div>
            <p class="enlaces">
                   <a href="#" onclick="document.forms[0].submit()" > Save </a>
                   <%= Html.ActionLink("Back to program details", "Details", "Program", new { id = ViewContext.RouteData.Values["programid"] }, null)%>
            </p>
        </fieldset>

    <% } %>


</asp:Content>

